package com.toby.spi.log;

import org.apache.dubbo.common.URL;

/**
 * ClassName:LogWrapper
 * Package:com.toby.spi.log
 * TODO:
 *
 * @date:2021/9/29 14:28
 * @author:Vicky(陈烟星)
 */
public class LogWrapper implements Log{

    private Log log;

    public LogWrapper(Log log) {
        this.log = log;
    }


    public void say() {
        System.out.println("包装方法开始");
        log.say();
        System.out.println("包装方法结束");
    }

    public void dance(URL ur) {
        System.out.println("包装方法开始");
        log.dance(ur);
        System.out.println("包装方法结束");
    }
}
